Skip to content

arrow-cast: Add ability to cast plain struct to dictionary#10039

Merged
alamb merged 1 commit into
apache:mainfrom
polarsignals:struct-dict-cast
Jun 2, 2026
Merged

arrow-cast: Add ability to cast plain struct to dictionary#10039
alamb merged 1 commit into
apache:mainfrom
polarsignals:struct-dict-cast

Conversation

@brancz
Copy link
Copy Markdown
Contributor

@brancz brancz commented May 29, 2026

Which issue does this PR close?

What changes are included in this PR?

A naive implementation of casting plain structs to dictionaries, that doesn't perform any deduplication.

Are these changes tested?

Unit tests added.

Are there any user-facing changes?

No, just a new feature.

@alamb @Jefffrey

@github-actions github-actions Bot added the arrow Changes to the arrow crate label May 29, 2026
@brancz brancz force-pushed the struct-dict-cast branch from 0a9f057 to 001b18f Compare May 29, 2026 13:23
Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me -- thanks @brancz

@alamb alamb merged commit 57eeb26 into apache:main Jun 2, 2026
27 checks passed
@brancz brancz deleted the struct-dict-cast branch June 2, 2026 15:07
Rich-T-kid pushed a commit to Rich-T-kid/arrow-rs that referenced this pull request Jun 2, 2026
)

# Which issue does this PR close?

- Closes apache#10038

# What changes are included in this PR?

A naive implementation of casting plain structs to dictionaries, that
doesn't perform any deduplication.

# Are these changes tested?

Unit tests added.

# Are there any user-facing changes?

No, just a new feature.

@alamb @Jefffrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow casting plain struct to dictionary encoded struct

2 participants